package com.itheima.sc.impl.cms;

import com.itheima.sc.api.cms.PrefrenceAreaApi;
import com.itheima.sc.mapper.cms.PrefrenceAreaMapper;
import com.itheima.sc.mapper.pms.ProductMapper;
import com.itheima.sc.pojo.cms.PrefrenceArea;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class PrefrenceAreaImpl implements PrefrenceAreaApi {

    @Autowired
    private PrefrenceAreaMapper areaMapper;

    //获取所有商品优选
    public List<PrefrenceArea> listAll() {
        return areaMapper.selectList(null);
    }
}
